package com.foreknow.demo3;

/**
 * @author shkstart
 * @create 2021-07-26 13:26
 */
public class B extends A {

    public  B(){
        super("aa");
    }

    public B(String name) {
        //可以调用父类的构造器
        super(name);
    }

    public static void main(String[] args) {
        B b=new B("tom");
    }
}
